A simple threshold function. When you use this function, you define a threshold value, and enter this into the “c” parameter. If the input value is greater than or equal to the threshold, the output value is equal to the “a” parameter. Otherwise, the output value is equal to the “b” parameter.
This function is useful for converting a variable to e.g., an indicator. By letting “a” be 1 and “b” be 0, the output value is the indicator for the event that the input value is greater than or equal to the “c” parameter.
Note that the “a” parameter does not need to be greater than the “b” parameter. It is perfectly OK to e.g., let “a” be 0 and “b” be 1.